package org.demo;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import javax.sql.DataSource;

@SpringBootApplication
@MapperScan("org.demo.datasoureces.dao")
public class Application {

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(Application.class,args);
        DataSource hikariDataSource = applicationContext.getBean(DataSource.class);
        System.out.println("dataSource is:"+ hikariDataSource);
    }
}
